package com.lxx.utils;

import java.util.ArrayList;
import java.util.List;

/**
 * 数据校验结果
 * @author Administrator
 *
 */
public class ValidationResult {
	/**
	 * 是否有错误
	 */
	private boolean hasError;
	
	/**
	 * 错误信息列表
	 */
	private List<String> errMsgs = new ArrayList<>();
	
	public void addErrMsg(String errMsg) {
		hasError = true;
		errMsgs.add(errMsg);
	}

	public boolean isHasError() {
		return hasError;
	}

	public void setHasError(boolean hasError) {
		this.hasError = hasError;
	}

	public List<String> getErrMsgs() {
		return errMsgs;
	}

	public void setErrMsgs(List<String> errMsgs) {
		this.errMsgs = errMsgs;
	}

}
